'use strict';
module.exports = app => {
  const { STRING, CHAR } = app.Sequelize; // 获取数据类型
  const GlobalAdmin = app.modelmysql.define('globaladmin',
    {
      id: { type: CHAR(27), primaryKey: true },
      username: { type: STRING },
      nickname: { type: STRING },
      password: { type: STRING },
      language: { type: STRING }
    }
  );
  return GlobalAdmin;
};
